<template>
  <div>
     <!-- 固定头部 -->
    <div class="appindex-header-box">
      <div class="appindex-header">
        <div class="appindex-header-area">
          <p>
            上海
            <span class="iconfont icon-noactive">&#xe669;</span>
          </p>
        </div>
        <div class="appindex-header-search">
          <p>
            <span class="iconfont">&#xe699;</span>
            <input type="text" placeholder="输入地址/设计/类型">
          </p>
        </div>
        <div class="appindex-header-message">
          <span class="iconfont">&#xe689;</span>
        </div>
      </div>
    </div>
    <!-- 轮播图 -->
    <div class="home-lunbo-bg">
      <mt-swipe :auto="0">
        <mt-swipe-item><img src="../img/banner1.png" width="100%"></mt-swipe-item>
        <mt-swipe-item><img src="../img/banner2.png" width="100%"></mt-swipe-item>
        <mt-swipe-item><img src="../img/banner3.png" width="100%"></mt-swipe-item>
      </mt-swipe>
   </div>
   <!-- navbar -->
   <div class="navbar">
      <ul>
        <li>
          <dl>
            <dt><a href="javascript:;"><img src="../img/icon-index1.png"></a></dt>
            <dd>报价</dd>
          </dl>
        </li>
        <router-link tag="li" to="/home/sheji">
          <dl>
            <dt><a href="javascript:;"><img src="../img/icon-index2.png"></a></dt>
            <dd>找设计</dd>
          </dl>
        </router-link>
         <li>
          <dl>
            <dt><a href="javascript:;"><img src="../img/icon-index3.png"></a></dt>
            <dd>建材中心</dd>
          </dl>
        </li>
         <router-link tag='li' to="/home/goods">
          <dl>
            <dt><a href="javascript:;"><img src="../img/icon-index4.png"></a></dt>
            <dd>商品</dd>
          </dl>
        </router-link>
         <router-link tag="li" to="/home/newlists">
          <dl>
            <dt><a href="javascript:;"><img src="../img/icon-index5.png"></a></dt>
            <dd>新闻列表</dd>
          </dl>
        </router-link>
      </ul>
   </div>
   <p>
     <img src="../img/main.png" width="100%">
   </p>
    <!-- 结束 -->
  </div>
</template>
<script>
export default {
 
}
</script>
<style scoped>
.appindex-header-box {
  width: 100%;
  background: #fff;
  position: fixed;
  padding: 10px 0;
  top: 0;
  z-index: 200;
}
.appindex-header {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  align-content: center;
}
.appindex-header-area {
  width: 14%;
}
.appindex-header-area p {
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  font-size: 0.5rem;
  text-align: center;
}
.appindex-header-area p span.iconfont {
  font-size: 1.4rem !important;
}
.appindex-header-search {
  width: 70%;
  background: #f6f6f6;
  height: 30px;
  border-radius: 3px;
}
.appindex-header-search p {
  width: 100%;
  height: 100%;
  display: flex;
  align-content: center;
}
.appindex-header-search p input {
  background: none;
  outline: none;
  border: none;
  width: 80%;
  height: 100%;
}
.appindex-header-search p span {
  font-size: 1.5rem;
  color: #999;
  margin-left: 0.5rem;
  margin-top: 0.2rem;
  margin-right: 0.2rem;
}
.appindex-header-search p input::placeholder {
  color: #999;
  font-size: 0.5rem;
}

.appindex-header-message {
  width: 10%;
  text-align: center;
}
.appindex-header-message span {
  font-size: 1.7rem !important;
  position: relative;
}
.appindex-header-message span::before {
  content: "";
  display: block;
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  background: crimson;
  right: 0;
  border-radius: 50%;
  top: 0.16rem;
}

 .home-lunbo-bg{
   height: 200px;
   background: #ffffff;
   overflow: hidden;
   padding-top: 50px;
 }

 /* navbar */
 .navbar{
   width: 100%;
   background: #fff;
   padding: 10px 0;
 }
.navbar ul {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  align-content: center;
}
.navbar ul  li{
  width: 20%;
}
.navbar ul li dl {
  width: 100%;
  height: 100%;
}
.navbar ul li dl dt{
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items:top ;
}
.navbar ul li dl dt a{
  width: 45px;
  height: 45px;
  border-radius: 50%;
}
.navbar ul li:nth-child(1)  dl dt a{
 box-shadow: 0 5px 5px rgba(253, 144, 20, 0.2);
}
.navbar ul li:nth-child(2)  dl dt a::before{
  position: absolute;
  content: '免费';
  display: block;
  width: 80%;
  line-height: 13px;
  text-align: center;
  height: 12px;
  background: #fd6e4b;
  right: -50%;
  color: #fff;
  border-radius: 10px 10px 10px 0;
  padding: 8% 0;
  font-size: .5rem
}
.navbar ul li:nth-child(2)  dl dt a{
 box-shadow: 0 5px 5px rgba(39, 252, 188, 0.2);
  position: relative;
}
.navbar ul li:nth-child(3)  dl dt a{
 box-shadow: 0 5px 5px rgba(31, 210, 255, 0.2);
}
.navbar ul li:nth-child(4)  dl dt a{
 box-shadow: 0 5px 5px rgba(255, 193, 60, 0.2);
}
.navbar ul li:nth-child(5)  dl dt a{
 box-shadow: 0 5px 5px rgba(50, 255, 32, 0.2);
}
.navbar ul li dl dt a img{
  width: 100%;

}
 .navbar ul li dl dd{
  text-align: center;
  color: #313131 ;
  font-size: .8rem;
}


</style>
